﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;

namespace MetroCashLib.DataInfo
{
    /// <summary>
    /// Describe each account
    /// </summary>
    public class Account
    {
        [AutoIncrement, PrimaryKey]
        public int Id {get; set;}

        public string Name { get; set; }

        public int AccountTypeId { get; set; }

        [Ignore]
        public AccountType Type { get; set; }

        public int? AccountParentId { get; set; }

        [Ignore]
        public Account Parrent { get; set; }

        [MaxLength(250)]
        public string Description { get; set; }

        [MaxLength(500)]
        public string  Note { get; set; }

        public int CurrencyId { get; set; }

        [Ignore]
        public Currency Currency { get; set; }

        public bool isPlaceHolder { get; set; }

        [Ignore]
        public double Balance { get; set; }
    }
}
